package demo3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2024-06-02
 * Time: 14:07
 */
public class Test {
    public static void drawMap(Shape shape){
        shape.draw();
    }
    public static void drawShapes(){
        Rect rect = new Rect();
        Cycle cycle = new Cycle();
        Triangle triangle = new Triangle();
        String[] strings = {"cycle","rect","cycle","rect","triangle"};
    }

    public static void main(String[] args) {

    }
    public static void main1(String[] args) {
        Rect rect = new Rect();
        Cycle cycle = new Cycle();
        Triangle triangle = new Triangle();

        drawMap(rect);
        drawMap(cycle);
        drawMap(triangle);
    }
}
